package com.hj.deliveryorder.mapper;

import com.hj.deliveryorder.domain.DeliveryOrders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 配送手机卡号的订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
public interface DeliveryOrdersMapper 
{
    /**
     * 查询配送手机卡号的订单
     * 
     * @param id 配送手机卡号的订单主键
     * @return 配送手机卡号的订单
     */
    public DeliveryOrders selectDeliveryOrdersById(Long id);

    /**
     * 查询配送手机卡号的订单列表
     * 
     * @param deliveryOrders 配送手机卡号的订单
     * @return 配送手机卡号的订单集合
     */
    public List<DeliveryOrders> selectDeliveryOrdersList(DeliveryOrders deliveryOrders);

    /**
     * 新增配送手机卡号的订单
     * 
     * @param deliveryOrders 配送手机卡号的订单
     * @return 结果
     */
    public int insertDeliveryOrders(DeliveryOrders deliveryOrders);

    /**
     * 修改配送手机卡号的订单
     * 
     * @param deliveryOrders 配送手机卡号的订单
     * @return 结果
     */
    public int updateDeliveryOrders(DeliveryOrders deliveryOrders);

    /**
     * 删除配送手机卡号的订单
     * 
     * @param id 配送手机卡号的订单主键
     * @return 结果
     */
    public int deleteDeliveryOrdersById(Long id);

    /**
     * 批量删除配送手机卡号的订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDeliveryOrdersByIds(Long[] ids);

    int assignOrders(@Param("orderIds") List<Long> orderIds,@Param("userId") String userId, @Param("userName")String userName);

    Integer orderCount(DeliveryOrders deliveryOrders);
}
